package com.wtpaint.design.creational.prototype;

import java.text.MessageFormat;

public class MailUtil {

    public static void sendMail(Mail mail) {
        String outputContent = "{0}：{1}：{2}";
        System.out.println(MessageFormat.format(
                outputContent, mail.getName(), mail.getContent(), mail.getEmailAddress()));
    }


}
